<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>layui</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/business/layui/css/layui.css"
	media="all">

<link
	href="//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"
	rel="stylesheet">
<style type="text/css">
	dl.layui-anim.layui-anim-upbit{
		height:100px;
	}

</style>
</head>
<body style="width: 99.9%; ">
	<form class="layui-form" action="">
		<input type="hidden" id="id" name="id" value="${record.id }"/>
		<div style="float:left; width: 400px;">
			<table style="margin-top: 10px;">
				<tbody>
					<tr>
						<td style="width: 450px;">
							<div class="layui-form-item">
								<label class="layui-form-label">设备编号：</label>
								<div class="layui-input-block">
		      						<input type="text" id="blackboxno" name="blackboxno" value="${record.blackboxno }" required="" lay-verify="blackboxno" placeholder="请输入编号" autocomplete="off" class="layui-input">
		    					</div>
							</div>
						</td>
					</tr>
					
					<tr>
						<td style="width: 450px;">
							<div class="layui-form-item">
								<label class="layui-form-label">备案编号：</label>
								<div class="layui-input-block">
		      						<input type="text" id="certificateno" name="certificateno" value="${record.blackboxno }" required="" lay-verify="certificateno" placeholder="请输入编号" autocomplete="off" class="layui-input">
		    					</div>
							</div>
						</td>
					</tr>
					<tr>
						<td style="width: 450px;">
							<div class="layui-form-item">
								<label class="layui-form-label">规格型号：</label>
								<div class="layui-input-block">
		      						<input type="text" id="model" name="model" required="" value="${record.blackboxno }" lay-verify="model" placeholder="请输入编号" autocomplete="off" class="layui-input">
		    					</div>
							</div>
						</td>
					</tr>
					<tr>
						<td style="width: 450px;">
							<div class="layui-form-item">
								<label class="layui-form-label">生产厂家：</label>
		    					<div class="layui-input-block">
		      						<input type="text" id="manufacturer" name="manufacturer" value="${record.blackboxno }" required="" lay-verify="manufacturer" placeholder="请输入编号" autocomplete="off" class="layui-input">
		    					</div>
							</div>
						</td>
					</tr>
					
					<tr>
						<td style="width: 450px;">
							<div class="layui-form-item">
								<label class="layui-form-label">生产厂家：</label>
		    					<div class="layui-input-block">
		      						<input type="text" id="saftwarever" name="saftwarever" value="${record.blackboxno }" required="" lay-verify="saftwarever" placeholder="请输入编号" autocomplete="off" class="layui-input">
		    					</div>
							</div>
						</td>
					</tr>
					<tr>
						<td style="width: 450px;">
							<div class="layui-form-item">
								<label class="layui-form-label">SIM卡号：</label>
		    					<div class="layui-input-block">
		      						<input type="text" id="simcard" name="simcard" required="" value="${record.blackboxno }" lay-verify="simcard" placeholder="请输入编号" autocomplete="off" class="layui-input">
		    					</div>
							</div>
						</td>
					</tr>
					<tr>
						<td style="width: 450px;">
							<div class="layui-form-item">
								<label class="layui-form-label">设备状态：</label>
								<div class="layui-input-block">
		      						<!-- <input type="text" id="manufacturer" name="manufacturer" required="" lay-verify="manufacturer" placeholder="请输入编号" autocomplete="off" class="layui-input"> -->
		    						<select name="state" lay-verify="required">
								        <option value="0" <c:if test="${record.state==0 }">selected="selected"</c:if>>正常</option>
								        <option value="1" <c:if test="${record.state==1 }">selected="selected"</c:if>>故障</option>
								        <option value="2" <c:if test="${record.state==2 }">selected="selected"</c:if>>报废</option>
								     </select>
		    					</div>
							</div>
						</td>
					</tr>
					
					<tr>
						<td style="width: 450px;">
							<div class="layui-form-item">
								<label class="layui-form-label">使用状态：</label>
								<div class="layui-input-block">
		      						<!-- <input type="text" id="state" name="state" required="" lay-verify="state" placeholder="请输入编号" autocomplete="off" class="layui-input"> -->
		    						<select name="isuse" lay-verify="required">
								        
								        <option value="1" <c:if test="${record.isuse==1 }">selected="selected"</c:if>>使用</option>
								        <option value="2" <c:if test="${record.isuse==2 }">selected="selected"</c:if>>空闲</option>
								     </select>
		    					</div>
							</div>
						</td>
					</tr>
					
					<tr>
						<td style="width: 450px;">
							<div class="layui-form-item">
								<label class="layui-form-label">备注：</label>
								<div class="layui-input-block">
		    						<textarea id="comment" name="comment" required="" lay-verify="comment" placeholder="请输入内容" class="layui-textarea">
		    							 ${record.comment }
		    						</textarea>
		    					</div>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>	
		<div style="float:left; width: 400px;">
			<table style="margin-top: 10px;">
				<tbody>
					<tr>
						<td style="width: 450px;" colspan="2">
							<div class="layui-form-item">
								<label class="layui-form-label">硬件版本号：</label>
		    					<div class="layui-input-block">
		      						<input type="text" id="hardwarever" name="hardwarever" required="" value="${record.blackboxno }" lay-verify="hardwarever" placeholder="请输入编号" autocomplete="off" class="layui-input">
		    					</div>
							</div>
						</td>
					</tr>
					
					<tr>
						<td style="width: 450px;" colspan="2">
							<div class="layui-form-item">
								<label class="layui-form-label">软件版本号：</label>
		    					<div class="layui-input-block">
		      						<input type="text" id="softwarever" name="softwarever" value="${record.blackboxno }" required="" lay-verify="softwarever" placeholder="请输入编号" autocomplete="off" class="layui-input">
		    					</div>
							</div>
						</td>
					</tr>
					<tr>
						<td style="width: 200px;">
							<div class="layui-form-item">
								<div class="layui-input-block">
		      						<input type="checkbox" name="weight" title="载重" lay-skin="primary" value="1" <c:if test="${record.weight==1 }">checked="checked"</c:if> >
		    					</div>
							</div>
						</td>
						<td style="width: 200px;">
							<div class="layui-form-item">
								<div class="layui-input-block">
		      						<input type="checkbox" name="tilt" title="倾角" lay-skin="primary" value="1" <c:if test="${record.tilt==1 }">checked="checked"</c:if> >
		      						
		    					</div>
							</div>
						</td>
					</tr>
					<tr>
						<td style="width: 200px;">
							<div class="layui-form-item">
								<div class="layui-input-block">
		      						<input type="checkbox" name="windspeed" title="风速" lay-skin="primary" value="1" <c:if test="${record.windspeed==1 }">checked="checked"</c:if> >
		    					</div>
							</div>
						</td>
						<td style="width: 200px;">
							<div class="layui-form-item">
								<div class="layui-input-block">
		      						<input type="checkbox" name="envLmpact" title="环境碰撞" lay-skin="primary" value="1" <c:if test="${record.envLmpact==1 }">checked="checked"</c:if> >
		    					</div>
							</div>
						</td>
					</tr>
					<tr>
						<td style="width: 200px;">
							<div class="layui-form-item">
								<div class="layui-input-block">
		      						<input type="checkbox" name="scope" title="幅度" lay-skin="primary" value="1" <c:if test="${record.scope==1 }">checked="checked"</c:if> >
		    					</div>
							</div>
						</td>
						<td style="width: 200px;">
							<div class="layui-form-item">
								<div class="layui-input-block">
		      						<input type="checkbox" name="mulImpact" title="多机碰撞" lay-skin="primary" value="1" <c:if test="${record.mulImpact==1 }">checked="checked"</c:if> >
		    					</div>
							</div>
						</td>
					</tr>
					<tr>
						<td style="width: 200px;">
							<div class="layui-form-item">
								<div class="layui-input-block">
		      						<input type="checkbox" name="height" title="高度" lay-skin="primary" value="1" <c:if test="${record.height==1 }">checked="checked"</c:if> >
		    					</div>
							</div>
						</td>
						<td style="width: 200px;">
							<div class="layui-form-item">
								<div class="layui-input-block">
		      						<input type="checkbox" name="gps" title="GPS" lay-skin="primary" value="1" <c:if test="${record.gps==1 }">checked="checked"</c:if> >
		    					</div>
							</div>
						</td>
					</tr>
					<tr>
						<td style="width: 200px;">
							<div class="layui-form-item">
								<div class="layui-input-block">
		      						<input type="checkbox" name="angle" angle title="角度" lay-skin="primary" value="1" <c:if test="${record.angle==1 }">checked="checked"</c:if> >
		    					</div>
							</div>
						</td>
						<td style="width: 200px;">
							<div class="layui-form-item">
								<div class="layui-input-block">
		      						<input type="checkbox" name="ididentify" title="ID识别" lay-skin="primary" value="1" <c:if test="${record.ididentify==1 }">checked="checked"</c:if> >
		    					</div>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div style="width:180px;margin-left:650px;margin-top:50px;padding:10px;padding-top: 500px;">
			<button class="layui-btn layui-btn-small layui-btn-red" lay-submit lay-filter="updatebla">
					  <i class="layui-icon">&#xe654;</i>保存
			</button>
			<button class="layui-btn layui-btn-small layui-btn-red"  onclick="canclebla()">
					  <i class="layui-icon">&#x1007;</i>取消
			</button>
		</div>
	</form>
	<input type="hidden" id="contextPath" name="contextPath"
		value="${pageContext.request.contextPath}">
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/business/jquery.js?<%=Math.random()%>"
		charset="utf-8"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/business/layui/layui.js?<%=Math.random()%>"
		charset="utf-8"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/js/blackboxmanage/updatebla.js?<%=Math.random()%>"
		charset="utf-8"></script>
</body>
</html>